import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// css初始化
import 'normalize.css/normalize.css'
// 引入阿里图标
import './assets/iconfont/iconfont.css'
// ui框架
import ElementUI from 'element-ui';
// 覆盖原来的ui框架css
import './assets/styles/element-variables.scss'
// 如果需要自定义全局样式，在index.scss里面添加或者修改即可
import './assets/styles/index.scss'
// 路由拦截器
import './router/permission.js'
// 引入富文本编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// 注册全局常用api
import { dateFormat } from './utils/common'

Vue.use(mavonEditor)
Vue.use(ElementUI)

// 注释测试source tree
// 全局方法挂载
Vue.prototype.dateFormat = dateFormat

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
